/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package memory;

import java.util.Date;

/**
 *
 * @author Erdiansyah
 */
public class User {
    public enum ROLE{
        ADMIN, MODERATOR, BIASA
    }

    String name;
    String username;
    String role;
    boolean isban;  //statusban, kl banlogin cek dr sql
    long time;

    public User(String n, String un, String rl, long t){
        name = n;
        username = un;
        role = rl;
        isban = false;
        time = t;
    }

    public boolean isIsban() {
        return isban;
    }

    public void setIsban(boolean isban) {
        this.isban = isban;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

}
